package com.hao.sort;

import java.util.Random;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2021/5/20 15:32
 */
public class SortUtils {
    public static Integer[] getRandomArr(Integer count,Integer max){
        Random random = new Random();
        Integer[] arr = new Integer[count];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = random.nextInt(max);
        }
        return arr;
    }
    public static void printlnArr(Integer[] arr){
        for (int i = 0; i < arr.length; i++) {
            System.out.print(" " + arr[i]);
        }
        System.out.println();
    }
}
